package com.zhiyou.homework.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "student")
public class Student {
    @Id
    private Integer sid;

    private String sname;

    private Integer sgid;

    private String sex;

    private String simage;

    @Column(name = "sbed_number")
    private Integer sbedNumber;

    private Date sbrithday;

    private String spid;

    private String snation;

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname == null ? null : sname.trim();
    }

    public Integer getSgid() {
        return sgid;
    }

    public void setSgid(Integer sgid) {
        this.sgid = sgid;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getSimage() {
        return simage;
    }

    public void setSimage(String simage) {
        this.simage = simage == null ? null : simage.trim();
    }

    public Integer getSbedNumber() {
        return sbedNumber;
    }

    public void setSbedNumber(Integer sbedNumber) {
        this.sbedNumber = sbedNumber;
    }

    public Date getSbrithday() {
        return sbrithday;
    }

    public void setSbrithday(Date sbrithday) {
        this.sbrithday = sbrithday;
    }

    public String getSpid() {
        return spid;
    }

    public void setSpid(String spid) {
        this.spid = spid == null ? null : spid.trim();
    }

    public String getSnation() {
        return snation;
    }

    public void setSnation(String snation) {
        this.snation = snation == null ? null : snation.trim();
    }



}